Method for rejecting cells at an overloaded node buffer

ABSTRACT

A method for managing a buffer in a data network in which buffering is performed impartially for all connections. Data is transferred in frames each made up of a plurality of data cells. The data is buffered in a node point in the network in order to adapt the data network capacity to correspond to the capacity required by the transferable data. In a data overload situation at the buffer (or when the overload limit is about to be exceeded), the number of cells to be buffered and directed to the node point are predeterminately restricted.

BACKGROUND OF THE INVENTION

1. Field of the Invention

This invention relates to a method defined in the introductory part of claim 1 for managing a buffer in a data network, in which the data is divided into frames and the frame has several cells.

2. Description of the Related Art

At the present high-speed data networks are used for the data transfer, of which an ATM-network (Asynchronous Transfer Mode)-network can be mentioned as an example. Besides high transfer speeds the most significant advantages of the ATM include a connectable and dynamic architecture. ATM can easily be adapted for different occasional telecommunication speeds. ATM- terminal devices can also reserve the desired portion of the band width of the ATM-network in order to establish connections similar to a telephone network. Due to the connection distance one of the most important factors influencing the ATM performance is the architecture of the coupling circuit in the ATM-device.

When information is transferred between two computers through private and public ATM-networks, the transmitter must negotiate with each node or node point along the way concerning the routing of the packages, transfer speeds and service levels. The process is in principle analoguous to the connection establishment in a telephone network. The most remarkable difference is the determination of the service level. The communications description defines the parameters for the average transfer speed of ATM-cells as well as the burst duration and the delay variation tolerance. It is also determined, whether the connection serves constant bit rate or variable bit rate sources and whether the question is about connectable, as frame relay, or nonconnectable communications known from the local network.

Depending on the agreed service level the nodes follow priorities, which determine, which of the willing cells is allowed firstly inside the ATM-circuit. Besides it is determined by priorities, which of the cells are removed firstly, when the transfer channel is for some reason overloaded.

An ATM-connection is established by paths (Virtual Path) formed inside a physical copper or light cable and connecting together nodes and terminal devices, which paths for their part are divided into several logical virtual channels. By paths the stationary reserved connections are realized and by channels the connectable temporary connections. Thanks to the flexible architecture each parallel channel of one path can transfer data of different type. The conception of virtuality peculiar to ATM is therefore generated by the idea, that the physical movement of a cell through the ATM coupling circuit lasts only for a while, though the connection is available all the time.

The fixed length of an ATM-cell has been chosen as 53 bytes, of which 48 bytes include actual information. In order to save space the 5-byte header of the ATM-cell does not comprise all necessary routing information, but only data of the next path (VP) and channel (VC). ATM assumes that the underlying transfer path is reliable, whereby the node points do not check the integrity of the data they transfer.

The path usually comprises several channels seeking for the transfer capacity. It is therefore obvious that in a certain stage several packages are simultaneous striving to attain the node. On the other hand the dynamically varying transfer speed may cause in the case of burst-filled communications situations, in which the optimal transfer speed of the node point is exceeded. Inner blocking takes place in the circuit itself for example in the case, when two data packages going to different out-ports are obliged to use the same inner route. If the circuit is not able to adapt two cells simultaneously to the same route, the other cell must be buffered or even destroyed. Upon the delivery blocking two cells are competing for the same out-port. By placing the buffer to the out-port, part of the problems is avoided. The buffer may operate either by the FIFO- line principle or according to priorities, whereby the time-depending audio and video files can be transferred ahead the other data.

When fixed transfer speeds are used in a node point, jamming does cause problems. Troubles emerge only when the communication quantity can sway together with random data buffers. Inner buffering of the node point eliminates short peak loads. The buffer seizes all the data packages, whose speed exceeds the handling ability of the node. Transfer of packages to the circuit takes subsequently place either by queueing or priority. For the jamming control also different priorite levels are needed for normal data and control information.

The structure and control of buffers may be the most important of the details connected to the ATM-coupling or node point. Buffering is needed in order that switches would not lose packages or frames in burst-filled traffic. Buffers are on the other hand harmful, because their construction is costly and as large devices they cause irritating delays. The buffer size depends on the circuit architecture and the adaptation. Most nodes have been planned on the starting buffers, whereby the packages go through the node before stopping. Also inner input and node buffers have been used.

The deeper into the buffer the data must be transferred, the more harmful delay is generated. Therefore the port-related buffers should be as short as possible. The node should mostly comprise space for at the most 50-256 cells to be buffered per port. In greater package amounts one must rely upon the traffic balancing techniques of the ATM-network.

A substantial part of the ATM-network traffic comprises data communications, especially between local networks. Typical for this kind of traffic are very great variations, the anticipation of which is difficult. On the other hand the data communications can often be adapted to the variations of the available capacity. For the most effective utilization of the ATM-network capacity the network can announce to the user the highest permissible transfer speed of the connection. For this a so-called ABR (Available Bit Rate) -service is under development. Another possibility is that the network does not inform the overloading situations to the users, but the user observes them as loss of data frames (Unspecified Bit Rate, UBR-service). In both cases it is very important that losses of frames are distributed fairly to different connections. Fair buffering causes, however, a significant problem, because transfer speeds in the ATM-network are very high, whereat realization of complicated protocolls and buffering methods causes great additional costs. Buffers with large physical size are also often used, which in this case require valuable space in the circuit board and engender extra costs.

Some methods for buffer control are already known. In the weighted Fair Queueing (WFQ) -method certain portion of the buffer capacity of each node is reserved for each connection. The number of buffer places needed by each connection depends on the traffic parameters defined for the connection. By this principle it is possible to guarantee for each connection (following the agreed traffic parameters) a trouble-free service regardless other traffic in the network.

By WFQ it is possible to guarantee trouble-free service simultaneously for very different connections. Its technical realization is however difficult, because it requires both a sophisticated buffering system and a complicated method, by which it is determined, which cells are accepted to the buffer. Static distribution of the buffer capacity based on WFQ requires very large buffers in each network node, if the number of connections is high.

Another known solution is a so-called Random Early Drop (RED), in which the data frame to be dropped during the overloading situation is randomly selected. The RED-principle is suitable for networks without connections, in which there is no information about the connections and their amounts. The ATM-network is, however, connectable in nature, so that rejection of frames may be done on the basis of data related to the connections.

A third solution is based on the fact that the network informs the users about the overloading situation in the network using e.g. a method of the EFCI-type (Explicit Forward Congestion Indication). When the network has sent an EFCI-notice, it is assumed that the users reduce the speed of the traffic to be sent to the network.

The solutions of both the RED and EFCI-type are simple from the view of the buffering realization. By them it is, however, very difficult to protect other network users, if some connection does not follow in advance agreed procedures in the overloading situation. By these methods it is not therefore possible to realize a fair capacity distribution. In large networks the influence of an EXCI-notice begins after a delay of considerable length, even tens of milliseconds. In order to keep moderate the amount of lost cells and frames, very large buffers are needed in each network node. EFCI requires equipment alterations in all parts of the network from connection cards to network nodes. Further on the most available embodiments cannot react to an EFCI-notice.

SUMMARY OF THE INVENTION

The objective of the invention is to eliminate the above-mentioned problems. The purpose of the present invention is especially to achieve a novel method and system in order to control a buffer, i.e. a buffer space, in the data network, as in ATM-network, and thus to enable effective operation fair to all network connections, which can be utilized in the data traffic of the data network. Because of the present invention it is possible to satisfy the requirements set forth naturally for the control method of the data traffic of the data and ATM-network: simple realization, fair capacity distribution for different connections and effective utilization of the network resources.

In the method according to the invention, and with reference to FIGS. 2A and 2B, for the control of a buffer 12 in the data network comprising a number of 14 and the data bus 16 connecting them and including a predefined amount of connections 18, data is transferred in frame form so that a data frame 20 comprises a number of data cells c₁, c₂ . . . c_(n), and data is buffered in the node point 14 in order to adapt the data network capacity and the capacity required by the transferable data to correspond each other. The data network comprises preferably an ATM-network, but also networks of other types can be used. The method according to the invention can also be adapted to other architectures having the problem of fair buffering of the data to be sent. According to the invention in the overloading situation of the buffer or in the case, where the overloading limit imposed to the buffer is about to be exceeded, the amount of cells to be buffered and coming to the node point is restricted. The overloading situation may be present for instance in the case, when three quarters of the total buffer capacity is in use. Restriction is made by rejecting the first cell c₁ to the data frame buffer 12 in incoming sequence, if the total number n of all cells in the buffer exceeds the predefined first limit value or for example the above-mentioned overloading limit, and if the number of cells sent by the connection that transferred the cell in the buffer exceeds the predefined second limit value.

In a preferred embodiment of the invention the first limit value is selected lower than the number of cells going to the buffer. This is made for instance in such a way that in a buffer, whose capacity is 2000 cells, the first limit value is selected to the value of 1500 cells. The second limit value is calculated from the formula: ##EQU1## where: W₁ =permissible number of cells of the connection i in the buffer;

Z=freely selectable weighting coefficient;

K=number of cells going to the buffer;

X=number of cells in the buffer;

R=first limit value (R<K).

The formula in question can also be written in the form:

    Y.sub.i N.sub.a (X-R)>Z(K-R)X.                             (2)

where:

Y_(i) =number of cells of the connection i in the buffer

N_(a) =number of active connections or the connections, which have at least one cell in the buffer,

Z=freely selectable weighting coefficient;

K=number of cells going to the buffer;

X=number of cells in the buffer;

R=first limit value (R<K).

Then the fulfillment of the condition imposed by the second limit value is determined by making the comparison according to the formula (2) above. This comparison can easily be realized by calculations, because Z(K-R) is not a quantity depending on the buffer loading. It is therefore sufficient, that for each comparison one subtraction and three multiplications are performed.

On the other hand the case in the method according to the invention may be, that it is desired to reserve certain capacity for certain connections, a kind of a "guarantee capacity", by which it is secured for the connection a capacity not depending on other connections. The capacity can be reserved advantageously in advance by giving to each connection, for which it is desired to distribute the capacity, a predefined weighting coefficient, whereby the second limit value is calculated from the formula: ##EQU2## where: W₁ =permissible number of cells of the connection i in the buffer;

Z=freely selectable weighting coefficient;

K=number of cells going to the buffer;

X=number of cells in the buffer;

R=first limit value (R<K).

q_(i) =weighting coefficient of connection 1; and ##EQU3## Further the formula in question can be written in the form:

    Y.sub.i Q(X-R)>Z(K-R)q.sub.i X.                            (4)

where:

Y_(i) =number of cells of tile connection i in the buffer; ##EQU4## Z=freely selectable weighting coefficient: K=number of cells going to the buffer;

X=number of cells in the buffer;

R=first limit value (R<K).

q₁ =weighting coefficient of connection 1.

In this context it can be mentioned, that the comparison presented in the formula (4) returns to the form shown in the formula (2), if equal weighting coefficient is given to each connection or when no connection has a more privileged status regarding other connections. It is also preferable, regardless the conditions above, if the buffer is full.

Though the formulas shown above are relatively clear and simple to calculate, the time used for the calculation, depending on the equipment about 10 μs, generate delay obstructing the operation in high-speed connections Therefore in the practice it is preferable to perform the calculations beforehand as completely as possible. That is why in one advantageous embodiment a table is formed, into which is placed the second limit value with the number of cells in the buffer and the number of active connections. In the table there is then a finished limit value with different parameter values. Therefore the engendered delay can be reduced, because reading from the table can be made more rapidly than calculation of values. Additionally by using a suitable cache memory, the reading time can further be decreased. Because it is unlikely that all the cells in the buffer belong to a different connection, the size of the table can be reduced essentially smaller by assuming, that the number of active connections is clearly below the buffer's maximum capacity. Further if the number of active connections exceeds the assumed value, the greatest number of active connections in the table will be used as parameter.

In one advantageous embodiment of the present invention the buffer size is selected according to the size of the frames to be sent, so that their ratio is preferably about 50. Thus can be ensured that the ratio between the buffer size and the frame size to be used is sufficient in order that the available capacity can be distributed as fairly as possible between the connections.

Also in one advantageous embodiment the size of the table to be formed can be reduced by decreasing the number of tabulable values X or the amount of cells in the buffer. In certain simulations it has been observed, that the variation of the parameter Z between 0,5-1 influences only slightly the fairness of the buffering, whereby as parameter X in the table can be used a staggered parameter X*, which can be determined as follows:

    X*=G.left brkt-bot.X/G+0,5.right brkt-bot., where .left brkt-bot. .right brkt-bot. refers to the integer                           (5)

In this formula G means a staggering constant influencing the table size. In some tests that have been realized by the method according to the invention it has been observed that even five different values of W₁ are sufficient in order to obtain necessary fairness.

One advantage of the present invention compared with the known technique comprises the possibility to divide the buffer space dynamically for many simultaneous connections in an effective and simple way. In tile overloading situation only the connection using higher than average network capacity, data frame losses take place. Embodiments using the connections in question may thereafter reduce their speed and thus avoid the frame losses. The invention offers also the advantage that by the method according the invention it is possible to weigh the capacity to be distributed for different connections by weighting coefficients.

The presented method offers further, compared with RED and EFCI-methods, substantially more justifiable capacity distribution of the network for different connections. Compared with the WFQ-method the presented method can be realized in a significantly simpler way thanks to the FIFO-buffering. Also compared with the static WFQ-method the need for buffering capacity of the presented method is significantly lower, because the capacity of the FIFO-buffer can be utilized very effectively (up to certain limit each free buffer position is available for the cell of any connection).

It can also be stated that the invention has an essential effect upon realization of services adapted for the data traffic in an ATM-network. The presented traffic control method enables advantageous, but simultaneously fair service.

BRIEF DESCRIPTION OF THE DRAWINGS

The invention will be described in the following as an example referring to some simulation results obtained by the method according to the invention and accompanying drawings, in which:

FIG. 1 is a graph depicting in curve form rejection operations of different algorithms;,

FIGS. 2A and 2B diagrammatically depict the relevant portions of a data network on which the inventive method may be practiced; and

FIGS. 3 to 8 are tables reporting the results obtained in the simulations hereinafter described.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Algorithm A3 according to the present invention is compared to two significantly simpler, but clearly more unjustified algorithms A1 and A2. In compliance with the algorithm A1 a cell coming to the node point is rejected, if X>R, where X and R are the same as above. The weakness of this algorithm is clearly visible. One connection may alone take a great part of the buffer, whereby other connections are in a weaker position regarding it. It would, however, be expedient in an overloading situation to reject cells from the connection, which uses the buffer capacity more than the others. By the second algorithm A2 it is tried to eliminate the above-mentioned problem. In the algorithm A2 the first cell of the frame in the input sequence is rejected, if X>R and W_(i) >1. In FIG. 1 of the drawing is presented the number of cells allowed by the above-mentioned algorithms A1, A2 and A3 for certain connection as a function of the number of cells in the buffer. Following algorithms have been used in the algorithms: K=2000, R=1500, Z=0,5, X=1525 and N_(a) =5. In the algorithm A3, when the number of cells in the buffer are attaining the number of cells going to the buffer, the second limit value W_(i) is reduced substantially under one. Therefore almost all cells are rejected, because the algorithm tries to balance the use of the buffer capacity between the connections, when the number of cells in the buffer increases.

This is a remarkable quality, because a part of the buffer capacity must be left for the remaining cells of the accepted frames. Operation of the algorithm A3 can be worked out depending on the adaptation by the selection of parameters R and Z.

In the following some simulation results are shown referring to the tables of FIGS. 3 to 6 1-4 for the algorithms A1, A2 and A3. In order to state the fairness a reference model is used based on the assumption, that traffic variations are relatively slow. Then the fair algorithm rejects cells in such a way, that there exists a maximum cell speed W_(max) satisfying the following terms when the loading exceeds the bus capacity: ##EQU5## wherein for the w_(i) connection i the characteristic cell speed, C is the bus speed, and: ##EQU6## In other words W_(max) is the greatest permissible band, which the connection may use in an overloading situation. The final cell loss ratio is determined as follows: ##EQU7## where m_(i) means the average bit speed of the connection and N the number of the connections. Based on the reference model above the fairness or justification index can be presented as follows: ##EQU8## where B_(i) means the simulated cell loss ratio of the connection i. The fairness index has following qualities:

F=1, if in all connections B_(i) =B_(i) *

if m_(i) =m_(o) for each i value and B_(i) :s comprise exponentially distributed random numbers, F is typically about zero

F does not change, if each B_(i) and B_(i) * is multiplied by the same constant

F is weighted by the average band width of each connection in order to avoid overweighting of connections in small cell speeds.

In FIG. 3 are presented the source types used in the simulations. The simulation program determines the connection activity 8000 between time intervals. In the table it has also been shown the simulation results for mere FIFO-buffer, A1, A2 and A3. As parameters has been used the following values: R=1500, Z=0,5, 0,9 and 1 (A3).

In FIGS. 4 to 6 there are shown the simulated cell loss of each connection and the calculated reference value as well as the average cell loss B_(ave). In the last column it is presented the fairness or justification index determined by simulation. As clearly shown in the tables, the algorithm is significantly more justified than other buffering algorithms used in the comparison. It can also be observed that the selection of the parameter Z does not influence very much the fairness. It does not, however, make calculations more complicated, so that there is no reason for its deletion. Actual traffic in the data network influences the selection of parameters R and Z.

In FIG. 7 there is presented the influence of the staggering according to the formula (5) to the simulation results. Firstly by staggering properly the above-mentioned parameter table the table size can be reduced to 100 kilobits, eliminating thus the problems caused by the table size. In the table the number of levels refers to the number of different W_(i) values. As can be discovered in the table, the level number can be reduced even significantly without a substantial influence to the fairness index.

In FIG. 8 has been shown the influence of the ratio of the buffer size and frame size to the fairness index. As shown in FIG. 8, the maximum ratio of the buffer size to the frame size should be at least 50 in order that sufficient fairness would be maintained. For instance, if the maximum frame size is 200, the buffer size must be about 10000.

The method according to the invention can be realized in a network node point by suitable combinatory logic and counter arrangement in the node before depositing the cells into the buffer. The buffer can comprise alternatively either an input, output or inner coupling field buffer. The physical realization contains further for each connection the following components: counter, which tells the number of cells of the connection in question in the buffer, ticket which tells whether the previous cell of the connection in question was the last one in the frame, and ticket which tells whether the cells belonging to the frame in question has been rejected before. These components can be realized with components generally used in the digital technique.

Finally as a summary it can be concluded that by the method according to the invention and the FIFO-buffers it is possible to realize very impartially a buffering method utilizing the buffer capacity. The presented method is especially suitable for control of UBR-connection to be realized in the ATM-network, because this method reacts rapidly in an over-loading situation.

The invention is not restricted to concern the above-shown examples, but many modifications are possible within the inventionial idea defined in the claims. 

What is claimed is:
 1. A method for managing a buffer in a data network having a plurality of node points, a data bus connecting the node points, a predefined number of connections through which method data is transferable in data frames each comprising a plurality of data cells, the method comprising the steps of:buffering data in one of the node points in order to adapt data network capacity to correspond to a capacity required by the transferable data; and restricting, in an overloading situation, a quantity of data cells to be buffered and that are directed to the one of the node points by rejecting a first data cell in an input sequence of the data frame of the directed data cells when a total number of all data cells in the buffer exceeds a first predefined limit value and the quantity of data cells directed to the one of the node points exceeds a second predefined limit value.
 2. A method according to claim 1, characterized in that the first predefined limit value (R) is selected lower than the quality of cells (K) directed to the buffer, and that the second predefined limit value (W_(i)) is calculated from the formula: ##EQU9## where: W_(i) =permissible number of cells of the connection i in the buffer;Z=freely selectable weighting coefficient; K=number of cells directed to the buffer; X=number of cells in the buffer; R=first predefined limit value (R<K).
 3. A method according to claim 1, characterized in that the data network capacity is distributed by giving each connection a predefined weighting coefficient, wherein the second predefined limit value is calculated from the formula: ##EQU10## where: W_(i) =permissible number of cells of the connection i in the buffer;Z=freely selectable weighting coefficient; K=number of cells directed to the buffer; X=number of cells in the buffer; R=first predefined limit value (R>K), q_(i) =weighting coefficient of the connection i; and Q=sum of the weighting coefficients.
 4. A method of claim 1, wherein the first cell is rejected, if the buffer is full.
 5. A method according to claim 1, wherein a table is formed, into which a second predefined limit value (W_(i)) is placed with the number of cells in the buffer and the number of active connections, whereby the connection is active, if at least one of the cells in the buffer belongs to it.
 6. A method according to claim 1, wherein a buffer size is selected according to size of the frames to be sent, so that their ratio is advantageously about
 50. 